﻿<%@ Page Title="Fale Conosco" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FaleConosco.aspx.cs" Inherits="CursoUNICEUB.FaleConosco" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100px;
        }
        .style4
        {
            width: 120px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <h1>
        Fale Conosco
    </h1>
    <br />
    <br />
    <table>
        <tr>
            <td class="style4">
                <asp:Label ID="Label1" runat="server" Text="Nome :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtNome" runat="server" Width="231px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvNome" runat="server" Display="Dynamic" ControlToValidate="txtNome" 
                    ErrorMessage="Nome." ToolTip="Campo Obrigatório." ValidationGroup="Enviar">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="Label2" runat="server" Text="Email :" ></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" Width="231px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvEmail" runat="server" Display="Dynamic" ControlToValidate="txtEmail"
                    ErrorMessage="Email." ToolTip="Campo Obrigatório." ValidationGroup="Enviar">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revEmail" runat="server" 
                    ErrorMessage="Email incorreto." ControlToValidate="txtEmail" Display="Dynamic" 
                    ValidationGroup="Enviar" Text="*" ToolTip="Email incorreto." 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="Label3" runat="server" Text="Telefone :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTelefone" runat="server" MaxLength="9"></asp:TextBox>
                <asp:MaskedEditExtender ID="txtTelefone_MaskedEditExtender" runat="server" Mask="9999-9999"
                    MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
                    Enabled="True" TargetControlID="txtTelefone" MaskType="None" ErrorTooltipEnabled="True">
                </asp:MaskedEditExtender>
                <asp:RequiredFieldValidator ID="rfvTelefone" runat="server" Display="Dynamic" ControlToValidate="txtTelefone"
                    ErrorMessage="Telefone." ToolTip="Campo Obrigatório." ValidationGroup="Enviar">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revTelefone" runat="server" 
                    ErrorMessage="Telefone." ControlToValidate="txtTelefone" Display="Dynamic" 
                    ValidationGroup="Enviar" Text="*" ToolTip="Telefone incorreto." 
                    ValidationExpression="^\d{8}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="Label4" runat="server" Text="Celular :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtCelular" runat="server" MaxLength="9"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvCelular" runat="server" Display="Dynamic" ControlToValidate="txtCelular"
                    ErrorMessage="Celular." ToolTip="Campo Obrigatório." ValidationGroup="Enviar">*</asp:RequiredFieldValidator>
                <asp:MaskedEditExtender ID="txtCelular_MaskedEditExtender" runat="server" Mask="9999-9999"
                    MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
                    Enabled="True" TargetControlID="txtCelular" MaskType="None" ErrorTooltipEnabled="True">
                </asp:MaskedEditExtender>
                <asp:RegularExpressionValidator ID="revCelular" runat="server" 
                    ErrorMessage="Celular." ControlToValidate="txtCelular" Display="Dynamic" 
                    ValidationGroup="Enviar" Text="*" ToolTip="Celular incorreto." 
                    ValidationExpression="^\d{8}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="Label6" runat="server" Text="Assunto :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtAssunto" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvAssunto" runat="server" Display="Dynamic" ControlToValidate="txtAssunto"
                    ErrorMessage="Assunto." ToolTip="Campo Obrigatório." ValidationGroup="Enviar">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style4" valign="top">
                <asp:Label ID="Label5" runat="server" Text="Mensagem :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMensagem" runat="server" TextMode="MultiLine" Width="446px" Height="113px"
                    style="margin-right: 0px" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvMensagem" runat="server" Display="Dynamic" ControlToValidate="txtMensagem"
                    ErrorMessage="Mensagem." ToolTip="Campo Obrigatório." ValidationGroup="Enviar">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="btnEnviar" runat="server" Text="Enviar" 
                    ValidationGroup="Enviar" onclick="btnEnviar_Click" />
                <asp:ValidationSummary ID="vSum" runat="server" HeaderText="Favor verificar os seguintes campos :" ShowMessageBox="True" ShowSummary="False" ValidationGroup="Enviar" />
            </td>
        </tr>
    </table>

</asp:Content>
